Prevent mail destined for mail-archive-file-name from being lost.
authorRob Browning <rlb@defaultvalue.org>
Sat, 16 Oct 2010 03:51:45 +0000 (22:51 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 16 Oct 2010 03:51:45 +0000 (22:51 -0500)
debian/changelog
debian/patches/fix-gnus-output-to-mail-with-live-rmail-buffers.diff [new file with mode: 0644]
debian/patches/series

index c8176fa4d082855e3384509c316862e0f635093f..377fb3d8b3c36b3ea1c3e4fcd97a8bf27cb54cb1 100644 (file)
@@ -8,7 +8,14 @@ emacs23 (23.2+1-5) unstable; urgency=low
     to Carl Worth <cworth@debian.org> and Sven Joachim
     <svenjoac@gmx.de> for finding the patches (closes: #586459).
 
- -- Rob Browning <rlb@defaultvalue.org>  Sun, 17 Oct 2010 23:53:54 -0500
+  * Apply upstream patch to prevent mail destined for
+    mail-archive-file-name from being lost
+    (fix-gnus-output-to-mail-with-live-rmail-buffers.diff).  Thanks to
+    Jeroen Nijhof <jeroen@nijhof.uklinux.net> for the report and Sven
+    Joachim <svenjoac@gmx.de> for tracking down the patch.
+    (closes: #597255)
+
+ -- Rob Browning <rlb@defaultvalue.org>  Mon, 18 Oct 2010 00:14:01 -0500
 
 emacs23 (23.2+1-4) unstable; urgency=low
 
diff --git a/debian/patches/fix-gnus-output-to-mail-with-live-rmail-buffers.diff b/debian/patches/fix-gnus-output-to-mail-with-live-rmail-buffers.diff
new file mode 100644 (file)
index 0000000..bcc07dc
--- /dev/null
@@ -0,0 +1,49 @@
+* Fcc should work properly even if the buffer is being visited in rmail-mode.
+  Patch: fix-gnus-output-to-mail-with-live-rmail-buffers.diff
+  Provided-by: Sven Joachim <svenjoac@gmx.de>
+  Date: Tue, 21 Sep 2010 08:14:57 +0200
+  Added-by: Rob Browning <rlb@defaultvalue.org>
+  Status: incorporated upstream
+
+  The Debian patch is taken from this upstream commit:
+
+  revno: 100052
+  committer: Glenn Morris <rgm@gnu.org>
+  branch nick: emacs-23
+  timestamp: Mon 2010-09-20 20:11:34 -0700
+  message:
+    Fix message-mode bug with fcc to Rmail buffers.
+
+    * lisp/gnus/message.el (message-output): Use gnus-output-to-rmail if a
+    buffer is visiting the fcc file in rmail-mode.
+
+--- a/lisp/gnus/ChangeLog
++++ b/lisp/gnus/ChangeLog
+@@ -1,3 +1,8 @@
++2010-09-21  Glenn Morris  <rgm@gnu.org>
++
++      * message.el (message-output): Use gnus-output-to-rmail if a buffer is
++      visiting the fcc file in rmail-mode.
++
+ 2010-04-22  Andreas Seltenreich  <seltenreich@gmx.de>
+       * message.el (message-generate-headers): Record insertion of optional
+--- a/lisp/gnus/message.el
++++ b/lisp/gnus/message.el
+@@ -5322,8 +5322,14 @@
+ (defun message-output (filename)
+   "Append this article to Unix/babyl mail file FILENAME."
+-  (if (and (file-readable-p filename)
+-         (mail-file-babyl-p filename))
++  (if (or (and (file-readable-p filename)
++             (mail-file-babyl-p filename))
++        ;; gnus-output-to-mail does the wrong thing with live, mbox
++        ;; Rmail buffers in Emacs 23.
++        ;; http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597255
++        (let ((buff (find-buffer-visiting filename)))
++          (and buff (with-current-buffer buff
++                      (eq major-mode 'rmail-mode)))))
+       (gnus-output-to-rmail filename t)
+     (gnus-output-to-mail filename t)))
index 13bb896f75ebb089ce80bd51b444c155311bbf05..a168d60aa17b8663544d0e50d403e655e88eab9c 100644 (file)
@@ -13,3 +13,4 @@ fix-gnu-kfreebsd-startup.diff
 prevent-string-stack-overflow.diff
 prevent-let-eval-apply-stack-overflow.diff
 use-safe-alloca-lisp-in-let-eval-apply-apply_lambda.diff
+fix-gnus-output-to-mail-with-live-rmail-buffers.diff